home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
04
/
4
/
DISK0442.ZIP
/
PWARN.WAR
< prev
next >
Wrap
Text File
|
1990-06-14
|
71KB
|
152 lines
COMMA ? SEMICOLON # PERCENT ~ QUOTE ! PLIPUNCH Y INDENT Y VERTBAR |
TITLE SPA:WN PROGRAM IN PASCAL /
PROGRAM WARNIER(INFLE,OUTFLE,PLIPUNCH,OUTDIAG,SRCPUNCH);??
?(T*(*$M 32760,0,655360*)*T)??
?(T*USES DOS;*T)??
?(*DECLARATIONS*)??
?(*PROCEDURES*)??
?BEGIN~---~END (*MAIN PROGRAM*).?#
(*DECLARATIONS*)??
?CONST??
?TYPE??
?VAR!10?#
TYPE??
?WPTRT=@WNODE;~LPTRT=@LINEORD;~QPTRT=@QEL;~SPPTRT=@STRP;??
?(*MORE TYPES*)??
?(T*TDSTRING = STRING[8];*T)??
?(8*CARDIMAGE=PACKED ARRAY[1..MAXLLIP1] OF CHAR;*8)??
?(*ARBITRARY DEEPENER*)?#
(8*CARDIMAGE=PACKED ARRAY[1..MAXLLIP1] OF CHAR;*8)??
?(T*CARDIMAGE=STRING[MAXLLIP1];*T)?#
(*MORE TYPES*)??
?VMT=PACKED ARRAY[1..MAXLLO] OF CHAR;??
?WORDT=PACKED ARRAY[1..9] OF CHAR;??
?STRPGTP=PACKED ARRAY[1.~.LENSTRPGS] OF CHAR;?#
(*ARBITRARY DEEPENER*)??
?(*RECORD DECLARATIONS*)??
?THREEDIG=(8*PACKED ARRAY[1..3] OF CHAR*8)~(T*STRING[3]*T);??
?BRKCHRS=SET OF CHAR;?#
VAR!10??
?LNOEC,PCNTEC,GMXD,PCNT,NCT,LPCNT,NQ,GMXH,PASSCNT,??
?WHEAD,WLAST,H,TWPTR,T,WNTOP,FRPTR,BRPTR:WPTRT;??
?CPAGE:SPPTRT;??
?LOTOP:LPTRT;??
?QH,QR,FPORD,TPTR,QLTOP:QPTRT;??
?(*ARRAYS & STRINGS*)??
?BREAKERS,PRES,POSTS,INDIFFS:BRKCHRS;??
?TAB,ICH,COM,SEMI,PCT,PEJ,QOT,SUPERZERO,SUPERNINE:CHAR;??
?PLIFLAG,INDFLAG,SRCFLAG,PRINTABLE:BOOLEAN;??
?INFLE,OUTFLE,PLIPUNCH,OUTDIAG,SRCPUNCH:TEXT;?#
LNOEC,PCNTEC,GMXD,PCNT,NCT,LPCNT,NQ,GMXH,PASSCNT,??
+?ECPL,COLPP,DGMPL,LPP,TOPM,LLO,LLOM4,LLI,LLIM4,LLIP1,CTRL,?#
+ECPL,COLPP,DGMPL,LPP,TOPM,LLO,LLOM4,LLI,LLIM4,LLIP1,CTRL,??
+?TITLEN,LASTNQ,NODEWIDTH,PREWIDTH,NODEWPPW,NODEWPP3,?#
+TITLEN,LASTNQ,NODEWIDTH,PREWIDTH,NODEWPPW,NODEWPP3,??
+?I,NDDN,CHDEL,GST,NQLIM,RETC,DISAMNO,NSP,LSP,FROFF,BROFF:INTEGER;?#
CONST??
?NMDEL=(T*13*T)~(8*64*8);~MAXCPP=10;~MAXNW=30;~MAXPW=10;~MAXLLO=160;?#
NMDEL=(T*13*T)~(8*64*8);MAXCPP=10;MAXNW=30;MAXPW=10;MAXLLO=160;??
?MAXLLIP1=161;~MAXDEPTH=40;~NBRSTRPGS=20;~LENSTRPGS=5000;DDSTL=100;?#
MAXLLIP1=161;MAXDEPTH=40;NBRSTRPGS=20;LENSTRPGS=5000;DDSTL=100;??
?(*CHARACTER CONSTANTS*)?#
(*CHARACTER CONSTANTS*)??
?REGZERO='0';~CAPA='A';~SMALLA='a';??
?HD1='ECHO OF INPUT / DIAGNOSTIC LOG';?#
(*RECORD DECLARATIONS*)??
?(*WARNIER NODE DEFINITION~*)??
?LINEORD=RECORD~---~END (*LINEORD NODE DEFINITION~*);??
?STRP=RECORD ~STRNG:STRPGTP;~END (*STRP DEFINITION*);??
?(*PAGE QEL NODE DEFINITION *)?#
(*WARNIER NODE DEFINITION*)??
?WNODE=PACKED RECORD~---~END;?#
WNODE=PACKED RECORD~---~END;??
?(*POINTER TO SUBPAGE QUEUE ELEMENT IN PAGINATION*)??
?(*(NEXT LVL, BACK, NEXT BRO)WARNIER POINTERS,(LEFT,RIGHT)LEX PTRS*)??
?(*START,LOCAL START,(NODE,REP) STRING OFFSET,MAXMOVE*)??
?(*LEN(PRE,VAL,INFX,REP,OUT),LVL,LINES/NODE,LCL DEPTH,(STR,REP)PGNO*)?#
(*LEN(PRE,VAL,INFX,REP,OUT),LVL,LINES/NODE,LCL DEPTH,(STR,REP)PGNO*)??
?LP,LV,LI,LR,LO,LVL,LPN,LD,SPN,RSPN:CHAR?#
(*START,LOCAL START,(NODE,REP) STRING OFFSET,MAXMOVE*)??
?ST,LS,NDSOFF,RPSOFF,MXM:INTEGER;?#
(*POINTER TO SUBPAGE QUEUE ELEMENT IN PAGINATION*)??
?SUBPAGE:QPTRT;?#
(*(NEXT LVL, BACK, NEXT BRO)WARNIER POINTERS,(LEFT,RIGHT)LEX PTRS*)??
?NLVL,BCK,NXT,LLINK,RLINK:WPTRT;?#
LINEORD=RECORD~---~END (*LINEORD NODE DEFINITION*);??
?(*CURRENT NODE OF COUSIN SET*)??
?WPTR:WPTRT;??
?(*NEXT SET OF COUSINS*)??
?NXTSC:LPTRT;??
?(*START POSITION, LAST POSITION IN LAYOUT*)??
?STARTP,LASTP:INTEGER?#
(*PAGE QEL NODE DEFINITION *)??
?QEL=PACKED RECORD~---~END;?#
QEL=PACKED RECORD~---~END;??
?(*DEWEY DECIMAL STRING*)??
?(*FORWARD AND BACKWARD IN QUEUE*)??
?(*POINTERS*)??
?(*FULLWORD HELD VALUES, PRIORITY*)??
?(*BYTE HELD VALUES*)?#
(*FULLWORD HELD VALUES, PRIORITY*)??
?PRTY,LSPH,STSH,STPH,NDSOFFH:INTEGER;?#
(*BYTE HELD VALUES*)??
?LPH,LVH,LIH,LRH,LPNH,SPNH,LDPH,DDL:CHAR?#
(*DEWEY DECIMAL STRING*)??
?DDNSTR:(8*PACKED ARRAY[1..DDSTL] OF CHAR*8)~(T*STRING[DDSTL]*T);?#
(*FORWARD AND BACKWARD IN QUEUE*)??
?NEXTQ,LASTQ:QPTRT;?#
(*POINTERS*)??
?SPPTR,NXTH,NLVLH:WPTRT;?#
(*ARRAYS & STRINGS*)??
?KEYS:ARRAY[1..22] OF WORDT;??
?START,REAR:ARRAY[1..MAXCPP] OF LPTRT;??
?SPADDR:ARRAY[1..NBRSTRPGS] OF SPPTRT;??
?BP,NP,NNE,NBE:ARRAY[1.~.MAXCPP] OF INTEGER;??
?(*CHARACTER VARS*)??
?MAXLEN:ARRAY[1..3] OF INTEGER;??
?MAXM,TOTWIDTH:ARRAY[1.~.MAXDEPTH] OF INTEGER;?#
(*CHARACTER VARS*)??
?(8*BLNW:PACKED ARRAY[1..MAXNW] OF CHAR;*8)??
?(T*BLNW:STRING[MAXNW];*T)??
?(*DEWEY DECIMAL HOLDERS*)??
?HDRPC:(8*PACKED ARRAY[1..24] OF CHAR*8)~(T*STRING[24]*T);??
?BACKREF:(8*PACKED ARRAY[1..28] OF CHAR*8)~(T*STRING[28]*T);??
?CSTR:(8*PACKED ARRAY[1..47] OF CHAR*8)~(T*STRING[47]*T);??
?CPN:THREEDIG;??
?(*MORE ARRAYS*)??
?VBAR,TBR,BBR:PACKED ARRAY[1..3] OF CHAR;??
?TITLE,EWDL,LCEWDL,BLANKV,TVAL:VMT;??
?INCARD:CARDIMAGE;~WORDVAR:WORDT;?#
(*DEWEY DECIMAL HOLDERS*)??
?DDN,PDN:(8*PACKED ARRAY[1..DDSTL] OF CHAR*8)~(T*STRING[DDSTL]*T);?#
(*MORE ARRAYS*)??
?CN1,CN2,CN3:(8*PACKED ARRAY[1..60] OF CHAR*8)~(T*STRING[60]*T);??
?NOTITLE,EWD,LCEWD,SEEPG:PACKED ARRAY[1..24] OF CHAR;??
?TINFX,TREP:(8*PACKED ARRAY[1..12] OF CHAR*8)~(T*STRING[12]*T);??
?TPRE:(8*PACKED ARRAY[1..MAXPW] OF CHAR*8)~(T*STRING[MAXPW]*T);??
?D(8*,TIM*8):(8*PACKED ARRAY[1..8] OF CHAR*8)~(T*STRING[8]*T);?#
(*PROCEDURES*)??
?(*SUPPORT, STARTUP, INPUT*)??
?PROCEDURE SRCOUT(PPTR:WPTRT);??
?PROCEDURE PLIOUT(TPTR:WPTRT);??
?(*LOGICAL LAYOUT PHASE ROUTINES*)??
?(*PHYSICAL OUTPUT PHASE ROUTINES*)?#
(*SUPPORT, STARTUP, INPUT*)??
?(*GENERAL SUPPORT ROUTINES*)??
?PROCEDURE INITIALIZE;~(8*VAR I:INTEGER;*8)~BEGIN;~---~END;??
?(*INPUT PHASE ROUTINES*)?#
(*GENERAL SUPPORT ROUTINES*)??
?(T*(*$I TIMEDATE.PAS*)*T)??
?PROCEDURE CONVERT(I:INTEGER;~VAR TPN:THREEDIG);??
?PROCEDURE OUTP;??
?PROCEDURE NEWNODE;?#
PROCEDURE NEWNODE;??
?BEGIN~---~END;!141?#
BEGIN~---~END;!141??
?IF WNTOP<>NIL THEN BEGIN~---~END ~ELSE ~NEW(TWPTR);??
?(*INIT NODE*)?#
(*INIT NODE*)??
?WITH TWPTR@ DO ~BEGIN~---~END;!887?#
IF WNTOP<>NIL THEN BEGIN~---~END ELSE NEW(TWPTR);??
?TWPTR:=WNTOP;~WNTOP:=TWPTR@.NXT?#
WITH TWPTR@ DO BEGIN~---~END;!887??,